package cn.bellychang.ood.litejunit.v2.biz;

import cn.bellychang.ood.litejunit.v2.framework.TestResult;
import cn.bellychang.ood.litejunit.v2.framework.testui.TestRunner;

/**
 * @author ChangLiang
 * @date 2020/5/27
 */
public class TestExecutor {

    public static void main(String[] args) {
        TestRunner testRunner= new TestRunner();
        try {
            TestResult r= testRunner.start(args);
            if (!r.wasSuccessful()) {
                System.exit(-1);
            }
            System.exit(0);
        } catch(Exception e) {
            System.err.println(e.getMessage());
            System.exit(-2);
        }
    }
}
